package gameevent

import (
	"xr-game-server/core/event"
	"xr-game-server/module/protocol"
)

const (
	ItemChange event.Type = "ItemChange"
	AddItemStr event.Type = "AddItemStr"
)

type AddItemStrData struct {
	RoleId  uint64
	ItemStr string
	Push    bool
}

func NewAddItemData(roleId uint64, itemStr string, push bool) *AddItemStrData {
	return &AddItemStrData{
		RoleId:  roleId,
		ItemStr: itemStr,
		Push:    push,
	}
}

type ItemChangeData struct {
	RoleId uint64
	Items  []*protocol.ItemModel
}

func NewItemChangeData(roleId uint64, items []*protocol.ItemModel) *ItemChangeData {
	return &ItemChangeData{
		RoleId: roleId,
		Items:  items,
	}
}
